<div class="blade-content ng-scope" id="blade-content">
  <div class="blade-inner">
    <div class="inner-block">
      <form name="form" class="form" (submit)="onCreate()" [formGroup]="formGroup" novalidate>
        <div class="blade-static __bottom" *ngIf="currentBlade.isNew">
          <button class="btn" [disabled]="canCreate()">创建</button>
        </div>
        <div class="tag-bottom">
          <div class="form-group">
            <label class="form-label">设备名称</label>
            <div class="form-input">
              <select name="deviceCategoryId" formControlName="deviceCategoryId">
                <option *ngFor="let item of parentEntity.deviceCategory;let i=index" [value]="item.deviceCategoryId">{{item.deviceCategoryName}}</option>

              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="form-label">型号名称</label>
            <div class="form-input">
              <input placeholder="输入型号名称" name="modelName" formControlName="modelName">
            </div>
            <div *ngIf="formErrors.modelName" class="form-error">
              {{ formErrors.modelName}}
            </div>
          </div>
          <div class="form-group">
            <label class="form-label">厂家名称</label>
            <div class="form-input">
              <select name="factoryId" formControlName="factoryId">
                <option *ngFor="let item of parentEntity.factory;let i=index" [value]="item.factoryId">{{item.factoryName}}</option>
              </select>
              <!-- <input placeholder="厂家名称" name="factoryName" > -->
            </div>
            <!--  <div *ngIf="formErrors.factoryName" class="form-error">
              {{ formErrors.factoryName }}
            </div> -->
          </div>
          <div class="form-group">
            <label class="form-label">装机容量</label>
            <div class="form-input">
              <input placeholder="输入装机容量" name="capaCity" formControlName="capaCity">
            </div>
            <div *ngIf="formErrors.capaCity" class="form-error">
              {{ formErrors.capaCity}}
            </div>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>